package com.lznAdmin.system.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: lznAdmin-pro
 * @description:
 * @author: lzn
 * @create: 2022-01-24 11:30
 **/
@Data
@TableName(value = "sys_dict_sub")
public class SysDictSub implements Serializable {

    @ApiModelProperty(value = "主键")
    @JSONField(serializeUsing = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "字典id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long mainId;

    @ApiModelProperty(value = "显示的文本")
    private String dictText;

    @ApiModelProperty(value = "保存的值")
    private String dictValue;

    @ApiModelProperty(value = "值类型0 = String，1 = number")
    private Integer valueType;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "排序")
    @OrderBy(asc = true)
    private Double sortNum;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "最后更新时间")
    private Date updateDate;
    @ApiModelProperty(value = "最后更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
}
